'use strict';

const express = require('express');
const subjectRouter = express.Router();
const subjectCtr = require('../../controllers/subjectController.js');

subjectRouter.get('/subject_add',subjectCtr.subjectAdd);

subjectRouter.post('/subject_add',subjectCtr.subAddData);

subjectRouter.get('/subject_list',subjectCtr.subjectList);

subjectRouter.get('/subject_del/:id',subjectCtr.subDelData);

subjectRouter.get('/subjectAll_del/:id',subjectCtr.subDelAllData);

subjectRouter.get('/subject_edit/:id',subjectCtr.subjectEdit);

subjectRouter.post('/subject_edit/:id',subjectCtr.subEditData);

module.exports = subjectRouter;
